class AddIndexIdToOrderlists < ActiveRecord::Migration[5.0]
  def change
    remove_column :orderlists, :index
    add_reference :orderlists, :index, index:true, foreign_key:true
  end
end
